const mongoose = require("mongoose");
//创建种类集合规则
const speciesSchema = new mongoose.Schema({
  name: [String],
});
//这里目前没用到
// const goodsSchema = new mongoose.Schema({
//   title: String,
//   con: String,
//   imgUrl: String,
//   detailed: {
//     imgUrl: [String],
//     title: String,
//     desc: String,
//     afterPrice: Number,
//     beforePrice: Number,
//   },
// });
const phoneSchema = new mongoose.Schema({
  desc: [
    {
      img: [{ imgclass: String, imgUrl: String }],
      tit: String,
      con: String,
    },
  ],
});
//创建学生信息集合
const vivoIndex = {
  Specie: mongoose.model("Specie", speciesSchema),
  // Good: mongoose.model("Good", goodsSchema),
  Phone: mongoose.model("Phone", phoneSchema),
};

module.exports = vivoIndex;
